//
//  MenuCollectionViewCell.m
//  village_ios
//
//  Created by mac on 2019/8/6.
//  Copyright © 2019 com.sw.village. All rights reserved.
//

#import "NewsCollectionCell.h"
#import "ArticleModel.h"
#import "UIImageView+AFNetworking.h"
@implementation NewsCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.iconImageView.layer.cornerRadius = 4;
    self.iconImageView.layer.masksToBounds = YES;
}
- (void)setArticleModel:(ArticleModel *)articleModel {
    
    NSString *str3 = [[articleModel title] substringToIndex:4];
    self.titleLabel.text = str3;
    [self.iconImageView setImageWithURL:[NSURL URLWithString:[articleModel cover_url]] placeholderImage:[UIImage imageNamed:@"app_icon"]];
}


@end
